/**
 * 
 */
package cn.biplam.front.template.control.pop;

import cn.biplam.common.paramters.SysCaption;
import cn.biplam.common.wrapper.ErrorMessage;
import cn.biplam.common.wrapper.UserInfo;
import cn.biplam.front.component.data.common.CaptionComp;
import cn.biplam.front.html.HtmlDiv;
import cn.biplam.front.html.base.HtmlWindow;
import cn.biplam.front.html.base.Const.Position_Mode;
import cn.biplam.front.html.base.Const.Window_Event;
import cn.biplam.front.htmlscript.script.PopupScript;
import cn.biplam.front.template.base.Anchor;
import cn.biplam.front.template.control.pop.PopLevel.Popup_Layer;

/**
 * 系统确认框，独占窗口模式
 * @author 	WangSong
 * @create 	2009-4-15 下午04:12:26
 * @version 1.0
 */
public class Alert extends Popup{
	
	
	/**
	 * 功能：构造方法
	 * @param ID		Confirm窗口绑定对象ID(外部Div)
	 * @param sHomeUrl	主页Url
	 * @param sTitle	标题
	 * @throws ErrorMessage 
	 */
	public Alert(String ID,String sHomeUrl,UserInfo mUser,String sTitle) throws ErrorMessage{
		super(ID,sHomeUrl,mUser,sTitle,Popup_Layer.Alert);
		this.setCssID("ab");
		HtmlWindow submit=new HtmlDiv(ID+"s");
		submit.put(new Anchor(null,CaptionComp.get(mUser, SysCaption.SubmitAnchor)).get());
		submit.setPositionMode(Position_Mode.Absolute);
		submit.bind(Window_Event.OnClick, PopupScript.cancel(ID));
		this.putFrame(submit);
	}
	
}
